package com.ukao.cashregister.bean;

import com.ukao.cashregister.utils.CheckUtils;

import java.util.List;

import static com.ukao.cashregister.R.id.sendMode;

/**
 * Created by ukaodev on 2017/10/10.
 */

public class ReceiptBean  extends  BaseBean<ReceiptBean>{

        /**
         * userName : null
         * cabinetOrderNo :
         * discount : 50
         * productCnt : 0
         * payStatusText : 未支付
         * storeName : 友靠麓云店
         * recoredTime :
         * serviceTel :
         * userCardNo : 828***721
         * wxCode :
         * orderNo : 2017101049760125
         * paymentPrice : null
         * paidPrice : 0
         * takeAddress : null
         * userPhone : null
         * createTime : 1507629215000
         * cabinetName :
         * userBalance : 0
         */

        private  int  couponAmt;
        private String userName;
        private String cabinetOrderNo;
        private int discount;
        private  String discountDesc;
        private int productCnt;
        private String payStatusText;
        private String storeName;
        private String recordTime;
        private String serviceTel;
        private String rfidNo;
        private String wxCode;
        private String orderNo;
        private Integer paymentPrice;
    private   Integer  orderPrice;
    private Integer paidPrice;
        private String takeAddress;
        private String userPhone;
        private long createTime;
        private String cabinetName;
        private int userBalance;
       private  int  modifyPrice;
    private  int  takeCarriage;
    private   int sendCarriage;
    private   int   isModifyPrice;
    private   String  userRemark;
    private    int payStatus;
    private  String  sendModeText;
    private  int  sendMode;
    private  String  sendWorkName;
    private   int  clothCnt;
    private  int   annexCnt;
    private  String mercName;
    private String userCardNo;

    public String getRfidNo() {
        return rfidNo;
    }

    public void setRfidNo(String rfidNo) {
        this.rfidNo = rfidNo;
    }

    public String getMercName() {
        return mercName;
    }

    public void setMercName(String mercName) {
        this.mercName = mercName;
    }

    public int getSendMode() {
        return sendMode;
    }
    public String getSendWorkName() {
        return CheckUtils.isEmptyString(sendWorkName);
    }
    public String getSendModeText() {
        return CheckUtils.isEmptyString(sendModeText);
    }
    public boolean getDiscountType() {
        return !CheckUtils.isEmpty(discountDesc);
    }

    public String getClothCnt() {
        return  "衣物"+clothCnt+"件,";
    }

    public String getAnnexCnt() {
        return "附件"+annexCnt+"件"  ;
    }

    public Integer getOrderPrice() {
        return orderPrice;
    }

    public String getUserRemark() {
        return userRemark;
    }

    public int getCouponAmt() {
        return couponAmt;
    }

    public int getModifyPrice() {
        return modifyPrice;
    }

    public int getTakeCarriage() {
        return takeCarriage;
    }

    public int getSendCarriage() {
        return sendCarriage;
    }

    public boolean getIsModifyPrice() {
        boolean isModifyPrices=false;
        if (!CheckUtils.isNull(isModifyPrice)&&isModifyPrice==1){/*是否修改*/
            isModifyPrices=true;
        }

        return isModifyPrices;
    }

    public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public String getCabinetOrderNo() {
            return cabinetOrderNo;
        }

        public void setCabinetOrderNo(String cabinetOrderNo) {
            this.cabinetOrderNo = cabinetOrderNo;
        }

        public int getDiscount() {
            return discount;
        }

        public void setDiscount(int discount) {
            this.discount = discount;
        }

        public int getProductCnt() {
            return productCnt;
        }

        public void setProductCnt(int productCnt) {
            this.productCnt = productCnt;
        }

        public String getPayStatusText() {
            return payStatusText;
        }

        public void setPayStatusText(String payStatusText) {
            this.payStatusText = payStatusText;
        }

        public String getStoreName() {
            return storeName;
        }

        public void setStoreName(String storeName) {
            this.storeName = storeName;
        }

        public String getRecoredTime() {
            return recordTime;

        }

        public void setRecoredTime(String recoredTime) {
            this.recordTime = recoredTime;
        }

        public String getServiceTel() {
            return serviceTel;
        }

        public void setServiceTel(String serviceTel) {
            this.serviceTel = serviceTel;
        }

        public String getUserCardNo() {
            return userCardNo;
        }

        public void setUserCardNo(String userCardNo) {
            this.userCardNo = userCardNo;
        }

        public String getWxCode() {
            return wxCode;
        }

        public void setWxCode(String wxCode) {
            this.wxCode = wxCode;
        }

        public String getOrderNo() {
            return orderNo;
        }

        public void setOrderNo(String orderNo) {
            this.orderNo = orderNo;
        }

        public Integer getPaymentPrice() {
            return paymentPrice;
        }

        public void setPaymentPrice(Integer paymentPrice) {
            this.paymentPrice = paymentPrice;
        }

        public Integer getPaidPrice() {
            return paidPrice;
        }

        public void setPaidPrice(int paidPrice) {
            this.paidPrice = paidPrice;
        }

        public String getTakeAddress() {
            return takeAddress;
        }

        public void setTakeAddress(String takeAddress) {
            this.takeAddress = takeAddress;
        }

        public String getUserPhone() {
            return userPhone;
        }

        public void setUserPhone(String userPhone) {
            this.userPhone = userPhone;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public String getCabinetName() {
            return cabinetName;
        }

        public void setCabinetName(String cabinetName) {
            this.cabinetName = cabinetName;
        }

        public int getUserBalance() {
            return userBalance;
        }

        public void setUserBalance(int userBalance) {
            this.userBalance = userBalance;
        }


    public boolean getPayStatus() {
        if (payStatus==1){  /*已支付*/
            return true;
        }
        return false;
    }

    /**
         * userName : 千寻
         * orderProductList : [{"serviceAmt":600,"no":1,"colorDesc":null,"discount":95,"addServiceDesc":null,"type":1,"subtotal":570,"productName":"T恤","flawDesc":null,"tranNum":147,"effectDesc":null,"serviceName":"单烫","annexDesc":null,"scanCode":"564450336387"}]
         * discount : 95
         * productCnt : 1
         * payStatusText : 未支付
         * storeName : 麓云店
         * serviceTel :
         * userCardNo : 669***629
         * wxCode : xiaoxiongdaocom
         * orderNo : 2017100940981742
         * paymentPrice : 570
         * paidPrice : 0
         * userPhone : 131****2310
         * createTime : 1507536485000
         * userBalance : 0
         */



       private List<OrderProductListBean> orderProductList;
//
//
//
        public List<OrderProductListBean> getOrderProductList() {
            return orderProductList;
        }
//
//        public void setOrderProductList(List<OrderProductListBean> orderProductList) {
//            this.orderProductList = orderProductList;
//        }
//
        public static class OrderProductListBean {
            /**
             * serviceAmt : 600
             * no : 1
             * colorDesc : null
             * discount : 95
             * addServiceDesc : null
             * type : 1
             * subtotal : 570
             * productName : T恤
             * flawDesc : null
             * tranNum : 147
             * effectDesc : null
             * serviceName : 单烫
             * annexDesc : null
             * scanCode : 564450336387
             */

            private int serviceAmt;
            private int no;
            private String colorDesc;
            private int discount;
            private Object addServiceDesc;
            private int type;
            private int subtotal;
            private String productName;
            private String flawDesc;
            private int tranNum;
            private Object effectDesc;
            private String serviceName;
            private Object annexDesc;
            private String scanCode;
            private  String tranTypeStr;

    public String getTranTypeStr() {
        return tranTypeStr;
    }

    public void setTranTypeStr(String tranTypeStr) {
        this.tranTypeStr = tranTypeStr;
    }

    public int getServiceAmt() {
                return serviceAmt;
            }

            public void setServiceAmt(int serviceAmt) {
                this.serviceAmt = serviceAmt;
            }

            public int getNo() {
                return no;
            }

            public void setNo(int no) {
                this.no = no;
            }

            public String getColorDesc() {
                return colorDesc;
            }

            public void setColorDesc(String colorDesc) {
                this.colorDesc = colorDesc;
            }

            public int getDiscount() {
                return discount;
            }

            public void setDiscount(int discount) {
                this.discount = discount;
            }

            public Object getAddServiceDesc() {
                return addServiceDesc;
            }

            public void setAddServiceDesc(Object addServiceDesc) {
                this.addServiceDesc = addServiceDesc;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getSubtotal() {
                return subtotal;
            }

            public void setSubtotal(int subtotal) {
                this.subtotal = subtotal;
            }

            public String getProductName() {
                return productName;
            }

            public void setProductName(String productName) {
                this.productName = productName;
            }

            public String getFlawDesc() {
                return flawDesc;
            }

            public void setFlawDesc(String flawDesc) {
                this.flawDesc = flawDesc;
            }

            public int getTranNum() {
                return tranNum;
            }

            public void setTranNum(int tranNum) {
                this.tranNum = tranNum;
            }

            public Object getEffectDesc() {
                return effectDesc;
            }

            public void setEffectDesc(Object effectDesc) {
                this.effectDesc = effectDesc;
            }

            public String getServiceName() {
                return serviceName;
            }

            public void setServiceName(String serviceName) {
                this.serviceName = serviceName;
            }

            public Object getAnnexDesc() {
                return annexDesc;
            }

            public void setAnnexDesc(Object annexDesc) {
                this.annexDesc = annexDesc;
            }

            public String getScanCode() {
                return scanCode;
            }

            public void setScanCode(String scanCode) {
                this.scanCode = scanCode;
            }
       }

}
